package com.cecdat.sys.controller;


import com.cecdat.common.annotation.PriOperation;
import com.cecdat.sys.entity.User;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.cecdat.common.controller.BaseController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cecdata
 * @since 2019-06-19
 */
@RestController
@RequestMapping("/sys/user")
public class UserController extends BaseController {



    @PostMapping
    @PriOperation(operationName = "用户添加",operationCode = "user:add")
    @PreAuthorize("hasPermission('','user:add')")
    public User addUser(){
        return new User();
    }


}
